<?php 
	class Front_Form_Albums extends Zend_Form
{
    public  function  init()
    {
         $this->setName('album');
         
         $id  = new  Zend_Form_Element_Hidden('id');//Táº¡o ra 1 input type = hidden
         $id ->addFilter('Int');//Chá»‰ cho phÃ©p nháº­p sá»‘
         
         
         $artist = new  Zend_Form_Element_Text( 'artist' );//Táº¡o ra 1 input type = text
         $artist->setLabel( 'Artist' )//name, id
               ->setRequired(true)//Ko duoc de trá»‘ng
               //->addFilter('StripTags' )//Bá»� tag html
               //->addFilter('StringTrim')//bá»� khoáº£ng tráº¯ng
               ->addValidator('NotEmpty');//Ko duoc de trá»‘ng
         
         
         $title  = new  Zend_Form_Element_Text( 'title');//Táº¡o ra 1 input type = text
         $title ->setLabel( 'Title')
              ->setRequired(true)
              ->addFilter('StripTags' )
              ->addFilter('StringTrim')
              ->addValidator('NotEmpty');
         
         $submit = new  Zend_Form_Element_Submit('submit' );//Táº¡o ra nÃºt submit
         $submit->setAttrib('id', 'submitbutton');//GÃ¡n id cho nÃºt submit
         
         $this->addElements(array($id , $artist, $title , $submit));//Gáº¯n cÃ¡c Ä‘á»‘i tÆ°á»£ng vÃ o form
    }
}

?>